<head th:fragment="appHeader">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<title>二维码转序系统</title>
	<link rel="icon" type="image/x-icon" th:href="@{/img/favicon.ico}">
	<link rel="stylesheet" th:href="@{/plugins/jquery-weui/lib/weui.min.css}">
	<link rel="stylesheet" th:href="@{/plugins/jquery-weui/css/jquery-weui.min.css}">
	<link rel="stylesheet" th:href="@{/plugins/Ionicons/css/ionicons.min.css}">
	<link rel="stylesheet" th:href="@{/plugins/fullcalendar/dist/fullcalendar.css}">
	<link rel="stylesheet" th:href="@{/css/css.css}">

</head>

<div th:fragment="appFooter">
	<script th:src="@{/plugins/jquery/jquery.min.js}"></script>
	<script th:src="@{/plugins/jquery-weui/js/jquery-weui.min.js}"></script>
	<script th:src="@{/plugins/jquery-weui/js/swiper.min.js}"></script>
	<script th:src="@{/plugins/jquery-weui/js/city-picker.min.js}"></script>
	<script th:src="@{/plugins/jquery-weui/lib/fastclick.js}"></script>
	<script th:src="@{/plugins/jquery-goup/jquery.goup.min.js}"></script>
	<script th:src="@{/plugins/moment/moment.js}"></script>
	<script th:src="@{/plugins/fullcalendar/dist/fullcalendar.js}"></script>
	<script th:src="@{/plugins/fullcalendar/dist/locale/zh-cn.js}"></script>
	<script th:src="@{/js/sgl-app.js}"></script>
	<script th:inline="javascript">
    var ctx = [[@{/}]];
	var permissions = [[${session.permissions}]];
	var sessionUser = [[${session.user}]];

	$(function() {
		FastClick.attach(document.body);
	});
	/**
	* 日期格式化
	* @param format 格式化
	* @returns {*}
	*/
	Date.prototype.format = function (format) {
		var args = {
			"M+": this.getMonth() + 1,
			"d+": this.getDate(),
			"h+": this.getHours(),
			"m+": this.getMinutes(),
			"s+": this.getSeconds(),
			"q+": Math.floor((this.getMonth() + 3) / 3),  //quarter
			"S": this.getMilliseconds()
		};
		if (/(y+)/.test(format))
			format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
		for (var i in args) {
			var n = args[i];
			if (new RegExp("(" + i + ")").test(format))
				format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? n : ("00" + n).substr(("" + n).length));
		}
		return format;
	};

	/**
	* 星期
	* @returns {*}
	*/
	Date.prototype.week = function () {
		var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
		return weeks[this.getDay()];
	};
	</script>

</div>